package com.guigu.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@PropertySource("classpath:alipay.properties")
public class AlipayProperties {
    /*
    appId
     */
    @Value("${alipay.appId}")
    private String appId;
    /*
    应用私钥
     */
    @Value("${alipay.privateKey}")
    private String privateKey;
    /*
    支付宝公钥
     */
    @Value("${alipay.publicKey}")
    private String publicKey;
    /*
    网关
     */
    @Value("${alipay.gateway}")
    private String gateway;

    /*
    支付宝前端跳转  不需要是公网!!!
     */
    @Value("${alipay.returnUrl}")
    private String returnUrl;
    /*
      异步通知 公网!!!
     */
    @Value("${alipay.notifyUrl}")
    private String notifyUrl;

}
